package com.hsytech.dijiebao.base;

import com.hsytech.dijiebao.utils.FileUtil;

import java.io.File;


/**
 * Created by Mo on 2015/7/6.
 */
public class SystemSettings {

	// ss

	public final static String SLASH = File.separator;

	public static class Debug {

		/**
		 * �Ƿ� �� ����ģʽ, �ǵĻ�, ʹ�� {@link com.soft2t.mframework.util.LogUtil} �еķ���
		 * ���ӡ log ��
		 */
		public static boolean SHOW_DEVELOP_LOG;// XXX ������ʱ��, ע��д�� false

		/**
		 * �Ƿ� ���� �������� �ϸ��� ģʽ
		 */
		public static boolean ENABLE_STRICT_MODE;// XXX ������ʱ��, ע��д�� false
	}

	public static class LogCachePath {
		public static String CRASH_LOG_PATH;

		public static String getCrashLogPath() {
			if (CRASH_LOG_PATH == null || CRASH_LOG_PATH.equals("")) {
				CRASH_LOG_PATH = SystemFile.getBasePath() + "CrashLog" + SLASH;
			}

			return CRASH_LOG_PATH;
		}

	}

	/**
	 *
	 */
	public static class SystemFile {

		public static final String FILE_PREFIX = "Soft2T";

		private static String BASE_PATH;

		public static String getBasePath() {
			if (BASE_PATH == null || BASE_PATH.equals("")) {
				BASE_PATH = FileUtil.getBaseSavePath(BaseApplication.mApplicationContext) + SLASH + //
						FILE_PREFIX + SLASH + BaseApplication.mApplicationContext.getPackageName() + SLASH;
			}

			return BASE_PATH;
		}

	}

	/**
	 * usedfor update
	 */
	public static class UpdateParams {

		public static final String APK_UPDATE_SERVER = "apk_update_server";
		public static final String APK_UPDATE_CONTENT = "apk_update_content";
		public static final String APK_DOWNLOAD_URL = "apk_download_url";
		public static final String APK_VERSION_CODE = "version";
	}

	public static class ExitActivity {
		public static String exitName = "MainActivity";
	}

	public static class RunningInBackground {
		public static String progressName = "match.android.activity";
	}

}
